package entity.general;

import java.util.ArrayList;
import java.util.List;

public class Week {
	List <MinTime> days = new ArrayList <>();
	public static enum Day {
		MONDAY(0), TUESDAY(1), WEDNESDAY(2), THURSDAY(3), FRIDAY(4), SATURDAY(5), SUNDAY(6);

		int day;
		Day(int i)
		{
			day = i;
		}
		public int getDayNr()
		{
			return day;
		}
	};

	public Week()
	{
		for(int i = 0; i < 7; i++)
		{
			days.add(new MinTime(0,0));
		}
	}
	
	public MinTime get(Day day)
	{
		return days.get(day.getDayNr());
	}

	public void set(Day day, MinTime time)
	{
		days.set(day.getDayNr(), time);
	}
}
